package com.typing.alarm.schedule;

import java.util.TimerTask;

import android.content.Context;
import android.content.Intent;

import com.typing.alarm.receiver.TypingAlarmReceiver;
import com.typing.alarm.value.TypingAlarmVO;

public class RepeatAlarm extends TimerTask{
	private Context mContext;
	private TypingAlarmVO alarmInfo;
	public RepeatAlarm(Context mContext,TypingAlarmVO alarmInfo){
		this.mContext = mContext;
		this.alarmInfo = alarmInfo;
	}
	@Override
	public void run() {
		// TODO Auto-generated method stub
		Intent i = new Intent(mContext,TypingAlarmReceiver.class);  
		i.putExtra("alarm_info", alarmInfo);
    	mContext.sendBroadcast(i);    
	}
}
